<template>
  <div electron class="container">
    <el-config-provider :locale="locale">
      <router-view />
    </el-config-provider>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";

const locale = ref(zhCn);
</script>

<style lang="scss">
@import "element-plus/theme-chalk/dark/css-vars.css";
@import "element-plus/theme-chalk/el-message.css";
@import "element-plus/theme-chalk/el-overlay.css";
@import "element-plus/theme-chalk/el-message-box.css";
@import "@/assets/scss/common.scss";

html,
body,
#app {
  margin: 0;
  height: 100%;
  width: 100%;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

[electron] {
  &.container {
    width: 100%;
    height: 100%;
  }

  * {
    box-sizing: border-box;
  }
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
